package com.hzdesk.media.matvector.koreabatch.client.my_paperless.logic.persenter;

import android.content.Context;
import android.text.TextUtils;

import com.hzdesk.media.matvector.koreabatch.client.my_paperless.logic.contract.IChangeMettingNameContract;

/**
 * Created by Administrator on 2018/8/14.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class ChangeMettingNamePersenter implements IChangeMettingNameContract.IChangeMettingNamePersenter {
    private IChangeMettingNameContract.IChangeMettingNameView mIChangeMettingNameView;

    public ChangeMettingNamePersenter(IChangeMettingNameContract.IChangeMettingNameView mIChangeMettingNameView) {
        this.mIChangeMettingNameView = mIChangeMettingNameView;
    }

    @Override
    public void initTtile() {
        mIChangeMettingNameView.showTitle();
    }

    @Override
    public void onClickedSubmit(int index, Context context) {
        String name =    mIChangeMettingNameView.getInpitNiName();
         if( name != null && !TextUtils.isEmpty(name)){
             mIChangeMettingNameView.setReturnName(name,index);
         }
    }
}

